<div id="search-form" class="form">
<?php
$model=new NunggulamaSearchQuery;
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'nunggulama-search-query-form',
	'enableAjaxValidation'=>false,
	'action'=>Yii::app()->createUrl('NungguLamaSearchQuery/create'),
	'method'=>'post',
)); ?>
<?php echo $form->errorSummary($model); ?>
	<div class="row">
	<?php echo $form->label($model,'Nomor / Rute Kendaraan<span class="required">*</span>'); ?>
	<?php
	$this->widget('CAutoComplete',
	array(
	//name of the html field that will be generated
			'name'=>CHtml::activeName($model, 'keywords'), 
	//replace controller/action with real ids
             'url'=>array('//route/autocompletelookup'), 
             'max'=>10, //specifies the max number of items to display

	//specifies the number of chars that must be entered
	//before autocomplete initiates a lookup
             'minChars'=>2, 
             'delay'=>500, //number of milliseconds before lookup occurs
             'matchCase'=>false, //match case when performing a lookup?

	//any additional html attributes that go inside of
	//the input field can be defined here
             'htmlOptions'=>array('size'=>'50'), 
             'methodChain'=>".result(function(event,item){\$(\"#user_id\").val(item[1]);})",
	));
	?>
	</div>

	<div class="row submit">
		<?php echo CHtml::submitButton('Telusuri'); ?>
	</div>
	<?php $this->endWidget(); ?>
</div>
 <?php echo $this->clips['position_posting']; ?>					


